package com.itheima.MyRunable;

public class Demo1 {
    public static void main(String[] args) {
        Thread.currentThread().getName();
        MyRunable mr=new MyRunable();
        Thread thread1=new Thread(mr);
        thread1.setName("进程一");

        Thread thread2=new Thread(mr);
        thread2.setName("进程二");
        thread1.start();
        thread2.start();
    }
}
